package com.wangt.biz.socket;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author gongtan
 */
@Component
public class TCPConfig implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        TCPServer.bind(11000);
        //TCPClient.connectToServer("127.0.0.1", 11000);
    }
}
